package cn.com.xljk.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.util.Date;

/**
 * 量题目对象 gauge_subject
 * 
 * @author rz
 * @date 2021-09-08
 */
public class GaugeSubject
{
    private static final long serialVersionUID = 1L;

    /** Id */
    private Long id;

    /** 乐观锁 */
    private Long revision;

    /** 逻辑删除标志 */
    @TableLogic(value = "0",delval = "1")
    private Integer delFlag;

    /** 创建人 */

    private String createdBy;

    /** 创建时间 */
    @TableField(fill = FieldFill.INSERT,value = "created_time")
    private Date createdTime;

    /** 更新人 */
    private String updatedBy;

    /** 更新时间 */
    @TableField(fill = FieldFill.INSERT_UPDATE,value = "updated_time")
    private Date updatedTime;

    /** 量表Id */
    private String gaugeId;

    /** 题目类型，具体详见字典表 */
    private String type;

    /** 题目序号 */
    private Long subjectIndex;

    /** 标题 */
    private String title;

    /** 是否必填 */
    private Integer isMustFill;

    /** 题目的备注说明 */
    private String note;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRevision(Long revision) 
    {
        this.revision = revision;
    }

    public Long getRevision() 
    {
        return revision;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setGaugeId(String gaugeId) 
    {
        this.gaugeId = gaugeId;
    }

    public String getGaugeId() 
    {
        return gaugeId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setSubjectIndex(Long subjectIndex) 
    {
        this.subjectIndex = subjectIndex;
    }

    public Long getSubjectIndex() 
    {
        return subjectIndex;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setIsMustFill(Integer isMustFill) 
    {
        this.isMustFill = isMustFill;
    }

    public Integer getIsMustFill() 
    {
        return isMustFill;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }

    @Override
    public String toString() {
        return "GaugeSubject{" +
                "id=" + id +
                ", revision=" + revision +
                ", delFlag=" + delFlag +
                ", createdBy='" + createdBy + '\'' +
                ", createdTime=" + createdTime +
                ", updatedBy='" + updatedBy + '\'' +
                ", updatedTime=" + updatedTime +
                ", gaugeId='" + gaugeId + '\'' +
                ", type='" + type + '\'' +
                ", subjectIndex=" + subjectIndex +
                ", title='" + title + '\'' +
                ", isMustFill=" + isMustFill +
                ", note='" + note + '\'' +
                '}';
    }
}
